package com.xuecheng.comment.service;

import com.xuecheng.api.comment.model.*;
import com.xuecheng.api.comment.model.dto.CommentDTO;
import com.xuecheng.api.comment.model.dto.ReplyDTO;
import com.xuecheng.comment.entity.Comment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.common.domain.page.PageRequestParams;
import com.xuecheng.common.domain.page.PageVO;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author itcast
 * @since 2021-04-20
 */
public interface CommentService extends IService<Comment> {

    //添加课程评论
    CommentDTO createComment(CommentModel model);

    //查询课程评论列表
    PageVO<CommentDTO> querryCommentList(QuerryCommentModel model,String useflag);

    //课程评论统计
    CommentStaticsModel commentStatistics(Long targetId);

    //课程评论点赞
    Boolean praiseComment(Long commentId, String userName);

    //课程评论回复
    ReplyDTO commentReply(ReplyModel model);

    //删除评论
    Boolean deleteCommentById(Long commentId);

    //批量删除评论
    Boolean deleteComments(String[] commentId);

}
